# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=mbt
pkgver=3.7
pkgrel=2
pkgdesc="Memory-based Tagger and Tagger Generator"
arch="all"
url="https://github.com/LanguageMachines/mbt"
license="GPL-3.0-only"
makedepends="libtool libxml2-dev ticcutils-dev timbl-dev timblserver-dev icu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/mbt/releases/download/v$pkgver/mbt-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

check() {
	LD_LIBRARY_PATH="$PWD/src/.libs/" make check
}

package() {
	make DESTDIR="$pkgdir" install
}


sha512sums="66992d540176b140726e8a3a04fe540c5d8e8cb8a15a903e57be943360569adc5e42014eae27eb82b051e6131b8ff75c9868e5eaa7a78149356253323d963c8d  mbt-3.7.tar.gz"
